package com.imooc.newretail.bpl.enums;

import lombok.Getter;

/**
 * @program:new-retail-teach
 * @description:返回结果错误码枚举
 * @author:Hank.He
 * @create:2020-06-27 13:21
 **/
@Getter
public enum ErrCodeEnum implements ErrCode {
    SUCCESS(0, "成功"),

    PARAM_ERROR(10, "参数不正确"),

    NO_DATA(11, "数据不存在"),
    PARAM_IS_EMPTY(12, "参数不能为空");


    Integer code;
    String message;

    ErrCodeEnum(Integer code, String msg) {
        this.code = code;
        this.message = msg;
    }
}
